import request from '@/utils/request'

// 查询光缆表列表
export function listCables(query) {
  return request({
    url: '/system/cables/list',
    method: 'get',
    params: query
  })
}

// 查询光缆表详细
export function getCables(id) {
  return request({
    url: '/system/cables/' + id,
    method: 'get'
  })
}

// 新增光缆表
export function addCables(data) {
  return request({
    url: '/system/cables',
    method: 'post',
    data: data
  })
}

// 修改光缆表
export function updateCables(data) {
  return request({
    url: '/system/cables',
    method: 'put',
    data: data
  })
}

// 删除光缆表
export function delCables(id) {
  return request({
    url: '/system/cables/' + id,
    method: 'delete'
  })
}
